<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .page{
            display: inline-block;
            padding: 8px;
            background-color: #428bca;
            margin: 5px;
        }
        .active{
            background-color: #1b6d85;
            color: white;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <ul>
        {% for foo in page %}
            <li>{{ foo }}</li>
        {% endfor %}
    </ul>

    <div class="pagination">
        {{ page_str }}
    </div>

</body>
</html>